package com.yyplatform.admin.platform.generator.model.entity;

import com.yyplatform.admin.infra.model.entity.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * @author sleepforests@163.com
 * <p>
 * Created on 2024/9/21 23:04
 */
@Entity
@Getter
@Setter
@Table(name = "sys_generator_table_config")
public class GenTableConfigEntity extends BaseEntity {

    @Column(name = "table_name", nullable = false, columnDefinition = " varchar(200) comment '表名称' ")
    private String tableName;

    @Column(name = "module_name", nullable = false, columnDefinition = " varchar(200) comment '模块名称' ")
    private String moduleName;

    @Column(name = "package_name", nullable = false, columnDefinition = " varchar(200) comment '包名称'")
    private String packageName;

    @Column(name = "business_name", columnDefinition = " varchar(200) comment '业务名称' ")
    private String businessName;

    @Column(name = "entity_name", columnDefinition = "varchar(200) comment '实体名称'")
    private String entityName;

    @Column(name = "author", columnDefinition = "varchar(200) comment '作者' ")
    private String author;

    @Column(name = "menu_parent_id", columnDefinition = " bigint(20) comment '上级菜单ID' ")
    private Long menuParentId;


    // ${URL_PREFIX}/sys/notice/
    @Column(name = "url_prefix", nullable = false, columnDefinition = " varchar(200) comment 'URL前缀' ")
    private String urlPrefix;

    // sys:notice
    // sys:notice:delete
    @Column(name = "role_name", nullable = false, columnDefinition = " varchar(200) comment '权限前缀' ")
    private String roleName;

    @Column(name = "tag_prefix", nullable = false, columnDefinition = " varchar(200) comment 'doc标签前缀' ")
    private String tagPrefix;


}
